package com.qhhc.entity;

import java.util.Date;

/**
 * 客服消息实体类
 */

public class CustomerServiceMessage {
    /**
     * 消息ID
     */
    private Long id;
    
    /**
     * 用户ID（登录用户）
     */
    private Long userId;
    
    /**
     * 会话ID
     */
    private String sessionId;
    
    /**
     * 访客ID（未登录用户）
     */
    private String visitorId;
    
    /**
     * 发送者类型：0访客，1客服
     */
    private Integer senderType;
    
    /**
     * 消息类型：0文本，1图片，2文件
     */
    private Integer messageType;
    
    /**
     * 消息内容
     */
    private String content;
    
    /**
     * 消息状态：0已发送，1已读，2已回复
     */
    private Integer status;
    
    /**
     * IP地址
     */
    private String ipAddress;
    
    /**
     * 创建时间
     */
    private Date createTime;
    
    /**
     * 更新时间
     */
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getVisitorId() {
        return visitorId;
    }

    public void setVisitorId(String visitorId) {
        this.visitorId = visitorId;
    }

    public Integer getSenderType() {
        return senderType;
    }

    public void setSenderType(Integer senderType) {
        this.senderType = senderType;
    }

    public Integer getMessageType() {
        return messageType;
    }

    public void setMessageType(Integer messageType) {
        this.messageType = messageType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public CustomerServiceMessage(Long id, Long userId, String sessionId, String visitorId, Integer senderType, Integer messageType, String content, Integer status, String ipAddress, Date createTime, Date updateTime) {
        this.id = id;
        this.userId = userId;
        this.sessionId = sessionId;
        this.visitorId = visitorId;
        this.senderType = senderType;
        this.messageType = messageType;
        this.content = content;
        this.status = status;
        this.ipAddress = ipAddress;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public CustomerServiceMessage() {
    }
}